package pers.qianyu.diytomcat.util;

import java.util.concurrent.*;

/**
 * 线程池工具类
 *
 * @author mizzle rain
 * @date 2021-01-07 14:55
 */
public class ThreadPoolUtil {
    private static ThreadPoolExecutor poolExecutor = new ThreadPoolExecutor(50, 100, 60, TimeUnit.SECONDS, new LinkedBlockingQueue<>(10));

    public static void run(Runnable task) {
        poolExecutor.execute(task);
    }
}
